<?php

namespace App\Http\Controllers\Common;

use App\Http\Controllers\BaseController;
use App\Params\Common\OrderListParams;
use App\Service\Common\OrderService;

class OrderController extends BaseController
{
    /**
     *  订单列表
     * @throws \App\Exceptions\BusinessException
     */
    public function orderList(): \Illuminate\Http\JsonResponse
    {
        $params = OrderListParams::create();
        $ret = OrderService::getInstance()->getOrderList($params);
        return $this->success($ret);
    }
}
